Optimal. Leaf size=168 \[ \frac{\tan (e+f x)}{2 c f (1-\cos (e+f x)) \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{3 \tan (e+f x) \log (1-\cos (e+f x))}{4 c f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{\tan (e+f x) \log (\cos (e+f x)+1)}{4 c f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136506, antiderivative size = 217, normalized size of antiderivative = 1.29, number of steps used = 3, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {3912, 72} \[ -\frac{\tan (e+f x)}{2 c f (1-\sec (e+f x)) \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{3 \tan (e+f x) \log (1-\sec (e+f x))}{4 c f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{\tan (e+f x) \log (\sec (e+f x)+1)}{4 c f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{\tan (e+f x) \log (\cos (e+f x))}{c f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3912
Rule 72
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{a+a \sec (e+f x)} (c-c \sec (e+f x))^{3/2}} \, dx &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{1}{x (a+a x) (c-c x)^2} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \left (\frac{1}{2 a c^2 (-1+x)^2}-\frac{3}{4 a c^2 (-1+x)}+\frac{1}{a c^2 x}-\frac{1}{4 a c^2 (1+x)}\right ) \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{\log (\cos (e+f x)) \tan (e+f x)}{c f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{3 \log (1-\sec (e+f x)) \tan (e+f x)}{4 c f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{\log (1+\sec (e+f x)) \tan (e+f x)}{4 c f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}-\frac{\tan (e+f x)}{2 c f (1-\sec (e+f x)) \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ \end{align*}
Mathematica [C] time = 8.14501, size = 143, normalized size = 0.85 \[ \frac{\tan (e+f x) \left (-3 \log \left (1-e^{i (e+f x)}\right )-\log \left (1+e^{i (e+f x)}\right )+\left (3 \log \left (1-e^{i (e+f x)}\right )+\log \left (1+e^{i (e+f x)}\right )-2 i f x\right ) \cos (e+f x)+2 i f x-1\right )}{2 c f (\cos (e+f x)-1) \sqrt{a (\sec (e+f x)+1)} \sqrt{c-c \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.294, size = 167, normalized size = 1. \begin{align*} -{\frac{-1+\cos \left ( fx+e \right ) }{4\,af\cos \left ( fx+e \right ) \sin \left ( fx+e \right ) } \left ( 6\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -4\,\cos \left ( fx+e \right ) \ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) -\cos \left ( fx+e \right ) -6\,\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +4\,\ln \left ( 2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) -1 \right ) \sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}} \left ({\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }} \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.9407, size = 1104, normalized size = 6.57 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{a \sec \left (f x + e\right ) + a} \sqrt{-c \sec \left (f x + e\right ) + c}}{a c^{2} \sec \left (f x + e\right )^{3} - a c^{2} \sec \left (f x + e\right )^{2} - a c^{2} \sec \left (f x + e\right ) + a c^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a \left (\sec{\left (e + f x \right )} + 1\right )} \left (- c \left (\sec{\left (e + f x \right )} - 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]